<?php
function smarty_function_fullhouse_photo_detail($params, &$smarty)
{
	$intUserId		= isset($params['userid']) ? $params['userid'] : 0;
	if($intUserId > 0) {
		$objVfriendUser = new Vfriend_User();
		$objUser		= $objVfriendUser->getFull($intUserId);
		$strUsername	= $objUser->username;
		$intHexId		= $objUser->hex;
	} else {
		$strUsername 	= isset($params['username']) ? $params['username'] : '';
		$intHexId	 	= isset($params['hex']) ? $params['hex'] : 0;
	}
	$intId	 		= isset($params['id']) ? $params['id'] : 0;	
	$strName 		= isset($params['name']) ? $params['name'] : '';
	
	return Vfriend_Function::linkFullhouseForPhotoDetail($strUsername, $intHexId, $intId, $strName);
}
?>